QT += quick gui KWindowSystem widgets core
QT += KWindowSystem KWaylandClient KWaylandServer

include($$PWD/../common/common.pri)
include($$PWD/../tablet-desktop-backend/baseHead.pri)

equals(QT_MAJOR_VERSION, 5) | equals(QT_MINOR_VERSION, 15) {
    CONFIG += qmltypes
    QML_IMPORT_NAME = org.ukui.tablet
    QML_IMPORT_MAJOR_VERSION = 1
    INCLUDEPATH += $$PWD/base $$PWD/core $$PWD/utils
}

INCLUDEPATH += \
        $$PWD

SOURCES += \
        $$PWD/base/launcheritem.cpp \
        $$PWD/base/basemodel.cpp \
        $$PWD/base/categoryitem.cpp \
        $$PWD/base/launcheritemhelper.cpp \
        $$PWD/base/sidebarstate.cpp \
        $$PWD/base/platformwindow.cpp \
        $$PWD/base/trayiconwatcher.cpp \
        $$PWD/core/appmanager.cpp \
        $$PWD/core/desktopdatahandler.cpp \
        $$PWD/core/modelmanager.cpp \
        $$PWD/core/modelmanagerprivate.cpp \
        $$PWD/core/taskbarmanager.cpp \
        $$PWD/core/desktopwindow.cpp \
        $$PWD/core/configmanager.cpp \
        $$PWD/core/appiconimageprovider.cpp \
        $$PWD/utils/desktopbackground.cpp \
        $$PWD/utils/getscreenshot.cpp \
        $$PWD/utils/generalsetting.cpp \
        $$PWD/utils/accountlogout.cpp \
        $$PWD/utils/showclendar.cpp \
        $$PWD/utils/wiredlinkstate.cpp \
        $$PWD/utils/wirelessstatus.cpp \
        $$PWD/utils/blurhelper.cpp \
#        $$PWD/core/kylintabletdekstopplugin.cpp

HEADERS += \
        $$PWD/base/basemodel.h \
        $$PWD/base/basemodel_p.h \
        $$PWD/base/categoryitem.h \
        $$PWD/base/launcheritemhelper.h \
        $$PWD/base/modeldefs.h \
        $$PWD/base/sidebarstate.h \
        $$PWD/base/platformwindow.h \
        $$PWD/base/trayiconwatcher.h \
        $$PWD/core/desktopdatahandler.h \
        $$PWD/core/appmanager.h \
        $$PWD/core/modelmanager.h \
        $$PWD/core/modelmanager_p.h \
        $$PWD/core/taskbarmanager.h \
        $$PWD/core/desktopwindow.h \
        $$PWD/core/configmanager.h \
        $$PWD/core/appiconimageprovider.h \
        $$PWD/base/launcheritem.h \
        $$PWD/utils/desktopbackground.h \
        $$PWD/utils/getscreenshot.h \
        $$PWD/utils/generalsetting.h \
        $$PWD/utils/accountlogout.h \
        $$PWD/utils/showclendar.h \
        $$PWD/utils/wiredlinkstate.h \
        $$PWD/utils/wirelessstatus.h \
        $$PWD/utils/blurhelper.h \
#        $$PWD/core/kylintabletdekstopplugin.h

CONFIG += link_pkgconfig c++11
PKGCONFIG += gsettings-qt kysdk-waylandhelper
